package com.chen.api;

import com.chen.dto.AccountA;
import com.chen.exception.MyRpcException;
import org.dromara.hmily.annotation.Hmily;

import java.math.BigDecimal;

public interface IAccountADubboService {

    AccountA findAccountAByUserId(int userId);

    /**
     * 1美元换7人民币
     */
    @Hmily()
    public void dollarToRmb(int userId, BigDecimal dollarAmount) throws MyRpcException;
}
